-
Notifications
You must be signed in to change notification settings - Fork 668
fix: use the keyCodes provided in options from wrapper.trigger #1378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
96b0b67
to
6030bd7
Compare
6030bd7
to
bbf1c1e
Compare
ef3e7d8
to
9aa178c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looked over the previous comments that have been addressed, this all seems reasonable - will give it a quick test tonight (and try find edge cases) but code looks ok. Nice job!!
Hey @JessicaSachs, thank you for your time and effort spent on this PR, contributions like yours help make Vue better for everyone. Cheers! 💚 |
This will address #1285 and #1295 once merged.
Previously
wrapper.trigger('keydown', { keyCode: 65 })
would trigger a keydown event with akeyCode
of0
. This is incorrect.To fix this, we must listen to the keyCode if the modifier doesn't exist.